def greater_common_divisor(a, b):
  """Implementation of greatest common divisor"""
  while a % b != 0:
    a, b = b, a % b
  return b